package day2002;

public class neibulei {
    static int aaa = 10;
    static int bbb = 20;
    public static void main(String[] args) {
        wbl a = new wbl();
        wbl.nbl b = a.new nbl() ;
        b.y(aaa,bbb);
    }

}
class wbl{
    public wbl() {
        System.out.println(new nbl().z(20,30));//外部类可以访问内部类的私有成员，但必须创建内部类的对象
    }
    int aaa =10;
    int bbb =20;
    void zxc(){
        System.out.println(123456);
    }
    class nbl{
        {
            zxc();
        }
        int a;
        String b;
        private int c ;

        public void x(){
            System.out.println("xxx");
        }
        public void y(int x ,int y){
            System.out.println(x*y);
        }
        private int z(int x,int y){
            return x*y+aaa*bbb;
        }
    }
}